package lion.framework.core.patch;

import lion.dev.lang.Init;
import lion.framework.core.anno.Initializer;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

@Initializer
public class PatchInitializer implements Init {

	private Log log = LogFactory.getLog(PatchInitializer.class);

	@Override
	public void init() {

		try {
			PatchManager.update();
		} catch (Exception e) {
			log.error("system patch error", e);
		}
	}

	@Override
	public int order() {

		return 0;
	}

}
